<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 85167
  Date: 2017/12/10
  Time: 11:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <c:import url="/WEB-INF/page/header.jsp"/>
    <link rel="stylesheet" type="text/css" href="/static/assets/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="/static/assets/common.css">
</head>
<body>
<div class="col-md-12">

    <form id="inputForm" action="${pageContext.request.contextPath}/admin/role/save_auth" method="post">
        <input type="hidden" name="id" value="${id}">
        <table class="table">
            <thead>
            <tr>
                <th>菜单</th>
                <th>选择</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${menus}" var="vo">
                <tr>
                    <td>${vo.name}</td>
                    <td>
                        <input name="menus" class="checkbox i-checks" type="checkbox" value="${vo.id}"
                               <c:if test="${info.roleId eq vo.id}">checked="checked"</c:if>>
                    </td>
                </tr>
            </c:forEach>

            </tbody>
        </table>
    </form>
</div>
<c:import url="/WEB-INF/page/footer.jsp"/>

</body>
</html>
